<?php
//$action = $action ? $action : 'index';

switch($action){
	case 'index':
		
		if($_COOKIE['pagemyadmin']){
			//header('Location: ?cmd=admin');	
			include admin_tpl('index');
		}
		else{
			header('Location: ?cmd=login');	
		}
		
	break;
	
	case 'left':
		include admin_tpl('index_left');
	break;
	
	case 'right':
		include admin_tpl('index_right');
	break;
}
?>